package activity

func GetYueKaJiaCheng(userId string) float32 {
	return 100
}
func GetNianKaJiaCheng(userId string) float32 {
	return 100
}
func Buy(userId string, shopId int32) (map[string]interface{}, error) {
	logic := NewActivityLogic()
	if shopId >= 10000001 {
		return logic.ChongZhi(userId, shopId)
	} else {
		return logic.Buy(userId, shopId)
	}
}
func ShopInfo(userId string) (map[string]interface{}, error) {
	var ret = make(map[string]interface{}, 0)
	logic := NewActivityLogic()
	info, err := logic.GetActivity(userId)
	if err != nil {
		return nil, err
	}
	ret["shop_info"] = info
	return ret, nil
}
func QianDao(userId string) (map[string]interface{}, error) {
	logic := NewActivityLogic()
	return logic.QianDao(userId)
}
func Reward(userId string, rewardType int64, rewardId int32) (map[string]interface{}, error) {
	logic := NewActivityLogic()
	return logic.Reward(userId, rewardType, rewardId)
}
